package com.lifeonwalden.fincalc.fund.bean;

import com.lifeonwalden.fincalc.fund.constant.FundTradeType;

import java.math.BigDecimal;
import java.util.Date;

public class FundTrade {
    /* 基金代码 */
    private String code;

    /* 发生日期 */
    private Date date;

    /* 发生金额 */
    private BigDecimal amount;

    /* 发生份额 */
    private BigDecimal share;

    /* 发生类型 */
    private FundTradeType tradeType;

    public String getCode() {
        return code;
    }

    public FundTrade setCode(String code) {
        this.code = code;
        return this;
    }

    public Date getDate() {
        return date;
    }

    public FundTrade setDate(Date date) {
        this.date = date;
        return this;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public FundTrade setAmount(BigDecimal amount) {
        this.amount = amount;
        return this;
    }

    public BigDecimal getShare() {
        return share;
    }

    public FundTrade setShare(BigDecimal share) {
        this.share = share;
        return this;
    }

    public FundTradeType getTradeType() {
        return tradeType;
    }

    public FundTrade setTradeType(FundTradeType tradeType) {
        this.tradeType = tradeType;
        return this;
    }
}